package com.example.check_oa.dubbo;

import com.example.check_oa.model.service.MouthAtService;
import com.example.comment_oa.dubbo.MouthAtDubbo;
import com.example.comment_oa.pojos.MouthAt;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * @author cjl
 */
@DubboService(version = "1.0.0",protocol = "${dubbo.protocol.id}",
        application = "${dubbo.application.id}",registry = "${dubbo.registry.id}",
        timeout = 3000)
public class MouthAtDubboImpl implements MouthAtDubbo {
    @Resource
    MouthAtService mouthAtService;

    //最近一个月考勤
    @Override
    public List<MouthAt> threMouthAt(String userNo) {
        List<MouthAt> mouthAts = mouthAtService.threMouthAt(userNo);
        return mouthAts;
    }
}
